// *** ADDED BY HEADER FIXUP ***
#include <wx/event.h>
#include <wx/gdicmn.h>
#include <wx/string.h>
#include <wx/window.h>
// *** END ***
#ifndef CONNECTIONDLG_H
#define CONNECTIONDLG_H

#define EXIT_LEGAL 110
//(*Headers(ConnectionDlg)
#include <wx/sizer.h>
#include <wx/stattext.h>
#include <wx/textctrl.h>
#include <wx/checkbox.h>
#include <wx/button.h>
#include <wx/dialog.h>
//*)
#include <wx/socket.h>
class ConnectionDlg: public wxDialog
{
	public:

		ConnectionDlg(wxWindow* parent,wxWindowID id=wxID_ANY,const wxPoint& pos=wxDefaultPosition,const wxSize& size=wxDefaultSize);
		virtual ~ConnectionDlg();
		wxSocketBase* GetConnection(wxWindow *parent);
		wxString GetUserName();
		wxString GetServerName();
		bool IsAddMsg();

	protected:
		//(*Identifiers(ConnectionDlg)
		static const long ID_STATICTEXT3;
		static const long ID_TEXTCTRL3;
		static const long ID_STATICTEXT1;
		static const long ID_TEXTCTRL1;
		static const long ID_STATICTEXT2;
		static const long ID_TEXTCTRL2;
		static const long ID_BUTTON1;
		static const long ID_CHECKBOX1;
		//*)
		//(*Declarations(ConnectionDlg)
		wxTextCtrl* txName;
		wxStaticText* StaticText2;
		wxTextCtrl* txAddr;
		wxStaticText* StaticText1;
		wxStaticText* StaticText3;
		wxCheckBox* cbAddMsg;
		wxTextCtrl* txPort;
		wxButton* bnConnect;
		//*)
		//(*Handlers(ConnectionDlg)
		void OnbnConnectClick(wxCommandEvent& event);
		//*)
		void BuildContent(wxWindow* parent,wxWindowID id,const wxPoint& pos,const wxSize& size);
		wxString serverName;
		wxSocketClient *sock;
		bool LoadSetting();
		void SaveSetting();
		DECLARE_EVENT_TABLE()
};

#endif
